package com.zmytest.repository;

import com.zmytest.model.LoginRecord;
import com.zmytest.service.LoginService;
import org.springframework.data.jpa.repository.JpaRepository;

import java.time.LocalDateTime;
import java.util.List;

/**
 * Created on 2018/12/21.
 *
 * @author zhangmingyu
 */
public interface LoginRecordRepository extends JpaRepository<LoginRecord,Long> {

    List<LoginRecord> findAllByEnableTrueAndAccountId(Long accountId);

    LoginRecord findByEnableTrueAndLoginToken(String loginToken);

}
